﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoTest.Common.ExcelExport;

namespace AutoTest.Business.Vo.Xue
{
    /// <summary>
    /// 简明信息
    /// </summary>
    public class XueBriefVo
    {
        /// <summary>
        /// 编码
        /// </summary>
        [ExportHeader("编码")]
        public string Code { get; set; } = string.Empty;
        /// <summary>
        /// 序号
        /// </summary>
        [ExportHeader("序号")]
        public long Period { get; set; }
        /// <summary>
        /// 总共轮次
        /// </summary>
        [ExportHeader("轮")]
        public int Round { get; set; }

        /// <summary>
        /// 明细
        /// </summary>
        [ExportHeader("结果序列")]
        public string ResultDetail { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<string> ToCsvString()
        {
            return [ 
                Code,
                Period.ToString(),
                Round.ToString(),
                ResultDetail
            ];
        }
    }
}
